/*
 * executable_file.h
 *
 *  Created on: 03/10/2013
 *      Author: vitor
 */

#ifndef EXECUTABLE_FILE_H_
#define EXECUTABLE_FILE_H_

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "definitions.h"

typedef struct _executableFile {
	unsigned int magic;
	unsigned short executionStartAddress;
	unsigned short dataSegmentSize;
	unsigned char program[65536];
} executableFile;

executableFile parseProgram(char* fileName);

#endif /* EXECUTABLE_FILE_H_ */
